<?php
session_start();

if(!isset($_SESSION['username'])){
	header("location:../index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <title>Web site</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="title" content="Web site" />
    <meta name="description" content="Site description here" />
    <meta name="keywords" content="keywords here" />
    <meta name="language" content="en" />
    <meta name="subject" content="Site subject here" />
    <meta name="robots" content="All" />
    <meta name="copyright" content="Your company" />
    <meta name="abstract" content="Site description here" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <link id="theme" rel="stylesheet" type="text/css" href="style.css" title="theme" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/custom.js"></script>
<script type="text/javascript" language="javascript" src="js/addon.js"></script>
  </head>
  <body> 
    <div id="top"> 
      <div class="overlay"></div> 
    </div>  
    <div id="wrapper"> 
      <div class="overlay"></div>  
      <div class="border-top"></div>  
      <div class="content"> 
        <div id="container"> 
          <div class="hd"> 
            <div id="container-top"></div>  
            <div id="banner"></div>  
            <div id="hmenu-wpr"> 
              <ul id="hmenu" class="sf-menu sf-js-enabled sf-shadow">
                <li class="current" style="border:none"> 
                  <a class="toplvl" href="#">Home</a> 
                </li>
                <li> 
                  <a href="index.php?mod=site" class="toplvl">Site</a>  
                  
                </li>
                <li> 
                  <a class="toplvl" href="index.php?mod=set">Set Expired</a>  
                   
                </li>
                <li> 
                  <a class="toplvl" href="../logout.php">Logout</a> 
                </li>
              </ul> 
            </div> 
          </div>  
          <div class="bd"> 
            <div id="page"> 
              <!-- SIDEBAR  -->  
              <div id="sidebar"> 
                <div class="content"> 
                <!-- SIDEBAR 2  -->  
              <div id="sidebox1"> 
                
                  <div class="sidebox2"> 
                    <h2>Site Notification </h2>  
                    <div class="vmenu"> 
					<?php include('expiredSite.php'); ?>
                      
                    </div> 
                  </div>  
                  
                
              </div>  
              <!-- END SIDEBAR 2  -->  
                  <div class="sidebox1">
                   
                    <h2>Report</h2>  
                    <div class="vmenu"> 
                      <ul>
                        <li><a href="index.php?mod=reportall" target="_blank">All</a> </li>
                        <li><a href="index.php?mod=reportex" target="_blank">Expired Site</a><br></a>                        </li>
                       
                      </ul> 
                    </div> 
                  </div>  
                  <div></div>  
                  </div>
              </div>  
              <!-- END SIDEBAR  -->  
              <!-- MAIN COLUMN -->  
              <div id="main"> 
                <div class="content"> 
				
                 <?php
				 $module = $_GET['mod'];
				 
				  
				 if($module=="site")
				 {
				
				 include "content.php"; 
				 }
				 elseif($module=="set")
				 {
				 	 include "expired.php";
				 }
				 elseif($module=="reportall")
				 {
				 	$set='1';
				 	include "report.php";
				 }
				 elseif($module=="reportex")
				 {
					//oke beres
					$set='2';	
				 	include "report.php";
				 }
				 elseif($module=="input")
				 {			
					
				 	include "formSite.php";
				 }
				 elseif($module=="edit")
				 {			
					
					$id_site = $_GET['id_site'];
					$nav = $_GET['nav'];
				 	include "formSite.php";
				 }
				
				 ?>
				 
                  <div style="margin-top:25px;"></div> 
                </div> 
              </div>  
              <!-- END MAIN -->  
              
              <div class="clear" style="height:60px"></div> 
            </div> 
          </div>  
          <div class="ft"> 
            <div id="footer"> 
              <div class="content"> 
                <!-- 
Keep this footer link UNCHANGED AND VISIBLE or make a 10 dollars donation at www.dotemplate.com/#donate to remove it.
-->  
               
              </div> 
            </div>  
            <div id="container-bottom"></div> 
          </div> 
        </div> 
      </div> 
    </div>  
    <div class="clear"></div> 
  </body>
</html>
